﻿
namespace Main.Database
{
    /// <summary>
    /// This class contains any variables and methods related to loading information into the Kernel.
    /// </summary>
    public static class Database
    {
        /// <summary>Load any information related to this program.</summary>
        public static bool Load()
        {
            // If this returns false, there was an error loading the clients.
            // It's then pointless to continue. Return false so we know something went wrong.
            if (!Clients.Load()) { return false; }

            if (!Appointments.Load()) { return false; }

            // If everything was loaded correctly, return true so we know everything went okay.
            return true;
        }
    }
}
